﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>About</title>
  <style type="text/css" rel="stylesheet">
	body {
		font-size:12px;
		line-height: 1.5;
		font-family: "sans serif",tahoma,verdana,helvetica;
		margin:0;
		background-color:#F0F0EE;
		overflow:hidden;
	}
	.main {
		margin: 10px;
	}
	.title {
		font-size: 18px;
		font-weight: bold;
		color: #FB7155;
		margin-bottom: 10px;
	}
	.table {
		list-style-image:none;
		list-style-position:outside;
		list-style-type:none;
		margin:0;
		padding:0;
		display:block;
	}
	.table li {
		padding:0;
		margin:0;
		display:list-item;
	}
	.table li label {
		font-weight:bold;
	}
	.table li input {
		vertical-align:middle;
	}
	.table li img {
		vertical-align:middle;
	}
  </style>
  <script type="text/javascript">
	var KE = parent.KE;
	location.href.match(/\?id=([\w-]+)/i);
	var id = RegExp.$1;
	KE.event.ready(function() {
		KE.util.hideLoadingPage(id);
	}, window, document);
	
  </script>
</head>
<body>
	<div class="main">
		<div>
		  <select size="1" id="language" name="language">
            <option value="actionscript">ActionScript</option>
            <option value="asm">Assembly</option>
            <option value="awk">AWK</option>
            <option value="bat">Bat 批处理</option>
            <option value="cpp">C/C++</option>
            <option value="csharp">C#</option>
            <option value="css">CSS</option>
            <option value="delphi">Delphi/Kylix</option>
            <option value="java">Java</option>
            <option value="javascript">JavaScript/JScript</option>
            <option value="pascal">Pascal</option>
            <option value="perl">Perl</option>
            <option value="php">Php</option>
            <option value="python">Python</option>
            <option value="ruby">Ruby/Rails</option>
            <option value="sql">Sql</option>
            <option value="shell">UNIX Shell</option>
            <option value="vb">Vb/Vb.net</option>
            <option value="xml">XML/XHTML/HTML</option>
		  </select>
		  <input type="checkbox" id="highlightDirectly" name="highlightDirectly" value="1" />
		  <label for="highlightDirectly">直接高亮（选中，则格式化代码；不选中，则指定代码 class）</label>
		</div>
		<div>
		<textarea id="content" name="content" cols="68" rows="22"></textarea>
		</div>
	</div>
<script type="text/javascript">
<!--
    function iniLanguageList()
    {
        // 获取 URL 中传过来的默认语言
        var language = location.search.match(new RegExp("[\?\&]language=([^\&]*)(\&?)","i"));
        var highlightDirectly = location.search.match(new RegExp("[\?\&]highlightDirectly=([^\&]*)(\&?)","i"));
        language = language ? language[1] : language;
        highlightDirectly = highlightDirectly ? highlightDirectly[1] : highlightDirectly;
        
        // 循环语言列表，选中默认语言
        var languageList = document.getElementById("language");
        for (var i = 0; i < languageList.options.length; i++)
        {
            if (languageList.options[i].value == language)
            {
                languageList.options[i].selected = true;
                break;
            }
        }
        
        document.getElementById("highlightDirectly").checked = (highlightDirectly == "1");
    }
    iniLanguageList();
//-->
</script>
</body>
</html>
